﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using Pg.BioMedics.SDR.Entities;
using Pg.BioMedics.SDR.Entities.Codes;
using Pg.BioMedics.SDR.Services;
using Pg.BioMedics.SDR.Web.Controls;

public partial class Operations_Views_RecordAnnotationView : BaseHostedView
{
    #region Fields

    private IIndexingService indexingService;
    private Document document;

    #endregion

    #region Properties

    /// <summary>
    /// Sets indexing service instance. This method is exposed 
    /// to IoC container which supplies view with services.
    /// </summary>
    public IIndexingService IndexingService
    {
        set
        {
            this.indexingService = value;
        }
    }

    #endregion

    #region Event handlers

    protected void Page_Load(object sender, EventArgs e)
    {        
    }

    protected override void LoadParameters(object[] parameters)
    {
        if (parameters.Length == 1)
        {
            if (parameters.First() is Person)
                this.document = parameters.First() as Document;
        }
    }

    #endregion
}
